﻿using System.Collections.Generic;
using Newtonsoft.Json;
using ZilLion.Service.Core.Domain.EntityBase;
using ZilLion.Service.WeChatMall.Domain.Entitys.ShopInfo;

namespace ZilLion.Service.WeChatMall.Domain.Responses
{
    public class ShopListResponse : ResponseBase
    {
        [JsonProperty("shopgroups")]
        public IList<ShopGroupDto> ShopGroups { get; set; }
    }

    public class ShopResponse : ResponseBase
    {
        [JsonProperty("shop")]
        public ShopInfoDto Shop { get; set; }
    }
    /// <summary>
    /// 门店分组dto(按照adcode 分组)
    /// </summary>
    public class ShopGroupDto
    {
        [JsonProperty("adcode")]
        public string Adcode { get; set; }
        [JsonProperty("shops")]
        public IList<ShopInfoDto> Shops { get; set; }
    }
}